package JavaSE.d4;

import java.util.Scanner;
//【String】在控制台输入姓名，判断此人是否姓“李”
public class Test16 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入你的姓名");
        String name=scanner.nextLine();
        if(name.startsWith("李")){
            System.out.println("你性李");
        }else {
            System.out.println("你不姓李");
        }
    }
}
